/**
 * 2017版StockSuggest
 * publish time: 2022-12-23 7:39:57 ├F10: PM┤
 */
!function webpackUniversalModuleDefinition(t, e) {
    "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.suggest2017 = e() : t.suggest2017 = e()
}("undefined" != typeof self ? self : this, function() {
    return function(n) {
        var a = {};
        function s(t) {
            if (a[t])
                return a[t].exports;
            var e = a[t] = {
                i: t,
                l: !1,
                exports: {}
            };
            return n[t].call(e.exports, e, e.exports, s),
                e.l = !0,
                e.exports
        }
        return s.m = n,
            s.c = a,
            s.d = function(t, e, n) {
                s.o(t, e) || Object.defineProperty(t, e, {
                    configurable: !1,
                    enumerable: !0,
                    get: n
                })
            }
            ,
            s.n = function(t) {
                var e = t && t.__esModule ? function() {
                        return t["default"]
                    }
                    : function() {
                        return t
                    }
                ;
                return s.d(e, "a", e),
                    e
            }
            ,
            s.o = function(t, e) {
                return Object.prototype.hasOwnProperty.call(t, e)
            }
            ,
            s.p = "",
            s(s.s = 3)
    }([function(t, e) {
        t.exports = {
            get: function(t) {
                t = document.cookie.match(new RegExp("(^| )" + t + "=([^;]*)(;|$)"));
                try {
                    if (null != t)
                        return decodeURIComponent(t[2])
                } catch (e) {}
                return null
            },
            set: function(t, e, n, a) {
                t = [t + "=" + encodeURIComponent(e)];
                n && ((e = new Date).setDate(e.getDate() + n),
                    t.push("expires=" + e.toGMTString())),
                    t.push("path=/"),
                a && t.push("domain=" + a),
                    document.cookie = t.join(";")
            },
            del: function(t, e) {
                var n = new Date((new Date).getTime() - 1);
                document.cookie = e ? t + "=;path=/;domain=" + e + ";expires=" + n.toGMTString() : t + "=;path=/;expires=" + n.toGMTString()
            }
        }
    }
        , function(t, e) {
            t.exports = {
                get: function(t, e) {
                    return this[e = e == undefined ? "dev" : e][t]
                },
                dev: {
                    styleurl: "../css/stocksuggest2017.css",
                    apiurl: "//searchapi.eastmoney.com/api/",
                    apiurl2: "//searchadapter.eastmoney.com/api/"
                },
                test: {
                    styleurl: "//emcharts.eastmoney.com/suggest/test/stocksuggest2017.css",
                    apiurl: "http://api.so.zptest.emapd.com/api/",
                    apiurl2: "//searchadapter-zptest.eastmoney.com/api/"
                },
                prod: {
                    styleurl: "//emcharts.eastmoney.com/suggest/stocksuggest2017.css",
                    apiurl: "//searchapi.eastmoney.com/api/",
                    apiurl2: "//searchadapter.eastmoney.com/api/"
                }
            }
        }
        , function(t, e) {
            var a = jQuery;
            function s(t) {
                var e = a.Deferred();
                return t(e.resolve, e.reject),
                    e.promise()
            }
            s.all = function(t) {
                return new s(function(n, e) {
                        a.when.apply(this, t).then(function() {
                            for (var t = [], e = 0; e < arguments.length; e++)
                                t.push(arguments[e][0]);
                            n(t)
                        }).fail(function(t) {
                            e(t)
                        })
                    }
                )
            }
                ,
                s.reject = function(n) {
                    return new s(function(t, e) {
                            e(n)
                        }
                    )
                }
                ,
                s.resolve = function(n) {
                    return new s(function(t, e) {
                            t(n)
                        }
                    )
                }
                ,
                t.exports = s
        }
        , function(t, e, n) {
            n(4);
            var r = jQuery
                , a = n(10)
                , s = n(11)
                , i = n(1)
                , l = n(30)
                , c = n(31)
                , d = n(32)
                , o = (a(i.get("styleurl", "prod")),
                null);
            function u(t) {
                if (this.options = r.extend({
                    inputid: null,
                    onSubmit: "search",
                    onConfirmStock: "quote",
                    moveinput: "Code",
                    zindex: 1e3,
                    position: {
                        left: null,
                        top: null
                    },
                    offset: {
                        left: 0,
                        top: 0
                    },
                    newtipsoffset: {
                        left: 0,
                        top: 0
                    },
                    placeholder: "输入股票代码、名称、简拼或关键字",
                    stockcount: 5,
                    gubacount: 4,
                    width: 364,
                    showblank: !0,
                    showstocklink: !0,
                    modules: ["stock", "guba", "module", "info", "searchall"],
                    infomodules: "all",
                    xg_modules: ["datacenter", "zhuti", "baike", "zhuanti", "huati", "cfh", "passport", "group"],
                    shownewtips: !1,
                    filter: {
                        markettype: "",
                        mktnum: "",
                        jys: "",
                        classify: "",
                        securitytype: "",
                        status: ""
                    },
                    hotStockLink: null,
                    quoteLink: null,
                    dataLink: null,
                    alwaysshowresult: !1,
                    gubatable: !1,
                    onClickGubaTable: null
                }, t),
                    this.options.modules = this.options.modules.filter(function(t) {
                        return "info" != t
                    }),
                this.options.alwaysshowresult && (this.options.showblank = !0),
                    this.input = r("#" + this.options.inputid),
                this.input.length <= 0)
                    return !1;
                this.form = this.input.parents("form"),
                    this.form.css({
                        position: "relative",
                        "_zoom:": "1"
                    }),
                    this.stock_data = null,
                    this.key = "",
                    this.sghtml = new s(this),
                    this.isposition = !1,
                    this.init(),
                    this.bind()
            }
            u.prototype.init = function() {
                var t = this
                    , e = (this.input.prop("autocomplete", "off").addClass("noieclear"),
                "" != this.options.placeholder && ("placeholder"in document.createElement("input") ? (this.input.prop("placeholder", this.options.placeholder),
                r.trim(this.input.val()) != this.options.placeholder && (this.key = r.trim(this.input.val()))) : ("" != r.trim(this.input.val()) ? this.key = r.trim(this.input.val()) : this.input.val(this.options.placeholder).addClass("sugphder"),
                    this.input.on("focus", function() {
                        t.input.val() == t.options.placeholder && t.input.val("").removeClass("sugphder")
                    }),
                    this.input.on("blur", function() {
                        "" == t.input.val() && t.input.val(t.options.placeholder).addClass("sugphder")
                    }))),
                    this.widths = {},
                    Math.floor(this.options.width - 364))
                    , n = Math.floor((this.options.width - 364) / 2);
                this.widths.text_left_fix = Math.floor((this.options.width - 364) / 6),
                    this.widths.text_left_fix_2 = Math.floor((this.options.width - 364) / 12),
                    this.widths.sg2017lp_li = 158 + n,
                    this.widths.sg2017ll = 182 + n,
                    this.widths.sg2land = 270 + e,
                    this.widths.sg2landl2 = 195 + e,
                this.div == undefined && (this.div = this.sghtml.init(this.options.width),
                    this.divc = r(".suggest2017c", this.div),
                d.isIpad() && (this.closediv = r('<div class="suggest2017_close"><img src="//emcharts.eastmoney.com/imgcdn/c9e50c9888.png"></div>'),
                    this.div.append(this.closediv),
                    this.closediv.click(function() {
                        t.div.hide()
                    })),
                    this.div.css({
                        zIndex: this.options.zindex
                    }),
                    this.rePosition(),
                    this.form.append(this.div)),
                this.options.shownewtips && this.sghtml.showHotNew(o, function(t) {
                    o = t
                })
            }
                ,
                u.prototype.rePosition = function() {
                    var t = this.input.position().left
                        , e = this.input.position().top + this.input.outerHeight() + 1;
                    this.options.position.left && (t = this.options.position.left),
                    this.options.position.top && (e = this.options.position.top),
                    this.options.offset.left && (t += this.options.offset.left),
                    this.options.offset.top && (e += this.options.offset.top),
                        this.div.css({
                            left: t,
                            top: e
                        })
                }
                ,
                u.prototype.bind = function() {
                    var n, t, e, a, s = this, i = null, o = "";
                    this.input.on("keyup change", function(t) {
                        return 38 == t.keyCode ? (s.movedown(-1),
                            !1) : 40 == t.keyCode ? (s.movedown(1),
                            !1) : (s.key = r.trim(s.input.val()),
                            void (s.key != o && (clearTimeout(i),
                                i = setTimeout(function() {
                                    s.search()
                                }, 300),
                                o = s.key)))
                    }),
                        this.input.on("keydown", function(t) {
                            if (13 == t.keyCode) {
                                t = r(".xgstock .sg2017table tr.suggest2017tf", this.div);
                                if (0 < t.length)
                                    return t.click(),
                                        !1
                            }
                        }),
                        this.input.on("focus", function() {
                            s.showBlankInit(),
                            s.options.shownewtips && s.options.showblank && s.sghtml.showHotNewIconed(s)
                        }),
                    this.options.alwaysshowresult && s.showBlankInit(),
                        this.form.on("submit", function() {
                            s.input.blur();
                            var t = "";
                            if ("search" == s.options.onSubmit)
                                return t = "http://so.eastmoney.com/web/s?keyword=" + encodeURIComponent(s.key),
                                "" == s.key && (t = "http://so.eastmoney.com/"),
                                    window.open(t),
                                    s.hide(),
                                    !1;
                            if ("quote" == s.options.onSubmit)
                                return t = "",
                                    null != s.stock_data ? (t = "//quote.eastmoney.com/unify/r/" + s.stock_data.QuoteID,
                                    "6" == s.stock_data.MarketType && (t = "//fund.eastmoney.com/" + s.stock_data.Code + ".html")) : (t = "http://so.eastmoney.com/web/s?keyword=" + encodeURIComponent(s.key),
                                    "" == s.key && (t = "http://so.eastmoney.com/")),
                                    window.open(t),
                                    s.hide(),
                                    !1;
                            if ("default" == s.options.onSubmit)
                                s.hide();
                            else if ("function" == typeof s.options.onSubmit)
                                return s.hide(),
                                    s.options.onSubmit({
                                        key: s.key,
                                        stock: s.stock_data
                                    })
                        }),
                    0 == this.options.alwaysshowresult && (d.isIpad() ? r(document).on("touchend", function(t) {
                        t = r(t.target);
                        t.is(s.input) || 0 < s.div.has(t).length || (s.div.hide(),
                            s.input.blur())
                    }) : r(document).on("click", function(t) {
                        t = r(t.target);
                        t.is(s.input) || 0 < s.div.has(t).length || s.div.hide()
                    })),
                        r(window).resize(function() {
                            s.isposition && s.rePosition()
                        }),
                        this.div.on("click", "a", function() {
                            r(this).data("searchhistory") && l.addHistory(r(this).data("searchhistory"))
                        }),
                        this.div.on("click", ".clearhsr", function() {
                            return l.clearHistory(),
                                r(".sg2017hsr", s.div).remove(),
                                !1
                        }),
                        this.div.on("click", ".hotsearchchange", function() {
                            return c("a", "click", "Web_rmss_hyh1"),
                                s.sghtml.hotSearchChange(r(".hotsearchdiv", s.div)),
                                !1
                        }),
                        this.div.on("click", ".hotstockchange", function() {
                            return c("a", "click", "Web_rmgg_hyh2"),
                                s.sghtml.hotStockChange(r(".hotstockdiv", s.div)),
                                !1
                        }),
                        t = (n = this).div,
                        e = this.input,
                        a = this.form,
                        e.on("focus", function() {
                            c("input", "focus", "Web_so_srk")
                        }),
                        a.on("submit", function() {
                            c("form", "submit", "Web_so_ss", n.key)
                        }),
                        t.on("click", "a", function() {
                            var t = r(this).data("stype")
                                , e = decodeURIComponent(r(this).data("skey"));
                            t && c("a", "click", "Web_so_" + t, n.key, e)
                        })
                }
                ,
                u.prototype.movedown = function(t) {
                    var e = r(".xgstock .sg2017table tr", this.div);
                    if (e.length < 1)
                        return !1;
                    var n = e.filter(".suggest2017tf").index()
                        , t = (e.removeClass("suggest2017tf"),
                        (n += t) < 0 ? n = e.length - 1 : n >= e.length && (n = 0),
                        e.eq(n));
                    t.addClass("suggest2017tf"),
                        this.stock_data = t.data("stockdata"),
                        this.input.val(this.stock_data[this.options.moveinput])
                }
                ,
                u.prototype.search = function() {
                    if (this.options.modules = this.options.modules.filter(function(t) {
                        return "info" != t
                    }),
                    "" == this.key)
                        return this.options.showblank ? this.showBlankInit() : this.hide(),
                            !1;
                    this.showResult(this.key)
                }
                ,
                u.prototype.showBlankInit = function() {
                    return "" != this.key ? this.showResult(this.key) : this.options.showblank && this.sghtml.blankInit(),
                        !1
                }
                ,
                u.prototype.showResult = function() {
                    var n = this;
                    this.options.modules = this.options.modules.filter(function(t) {
                        return "info" != t
                    }),
                        this.sghtml.newSearch().then(function() {
                            var t = r(".xgstock .sg2017table tr", n.div);
                            0 < t.length ? n.stock_data = t.eq(0).data("stockdata") : n.stock_data = null,
                                t.one("click", function() {
                                    if (n.stock_data = r(this).data("stockdata"),
                                        c("tr", "click", "Web_so_zq", n.key, n.stock_data.Name),
                                    "quote" == n.options.onConfirmStock)
                                        window.open("//quote.eastmoney.com/unify/r/" + n.stock_data.QuoteID);
                                    else if ("submit" == n.options.onConfirmStock)
                                        n.form.submit();
                                    else if ("function" == typeof n.options.onConfirmStock)
                                        return n.hide(),
                                            n.options.onConfirmStock({
                                                key: n.key,
                                                stock: n.stock_data
                                            });
                                    n.hide()
                                }),
                                t.on("click", "a", function() {
                                    var t = r(this).data("stype")
                                        , e = decodeURIComponent(r(this).data("skey"));
                                    return t && c("a", "click", "Web_so_" + t, n.key, e),
                                        window.open(r(this).attr("href")),
                                        n.hide(),
                                        !1
                                }),
                                r(".modules_guba .sg2017table tr", this.div).on("click", function() {
                                    var t = r(this).data("gubadata");
                                    n.options.onClickGubaTable ? n.options.onClickGubaTable(t) : window.open(t.Url)
                                })
                        })
                }
                ,
                u.prototype.remove = function() {
                    this.div.remove()
                }
                ,
                u.prototype.show = function() {
                    this.div.show()
                }
                ,
                u.prototype.hide = function() {
                    this.div.hide()
                }
                ,
                t.exports = u
        }
        , function(t, e, n) {
            n(5),
                n(6),
                n(7),
                n(8),
                n(9)
        }
        , function(t, e) {
            "function" != typeof Object.assign && (Object.assign = function(t) {
                    "use strict";
                    if (null == t)
                        throw new TypeError("Cannot convert undefined or null to object");
                    t = Object(t);
                    for (var e = 1; e < arguments.length; e++) {
                        var n = arguments[e];
                        if (null != n)
                            for (var a in n)
                                Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a])
                    }
                    return t
                }
            )
        }
        , function(t, e) {
            !function(t) {
                "use strict";
                t.console || (t.console = {});
                for (var e, n, a = t.console, s = function() {}, i = ["memory"], o = "assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(","); e = i.pop(); )
                    a[e] || (a[e] = {});
                for (; n = o.pop(); )
                    a[n] || (a[n] = s)
            }("undefined" == typeof window ? this : window)
        }
        , function(module, exports) {
            window.JSON || (window.JSON = {
                parse: function(sJSON) {
                    return eval("(" + sJSON + ")")
                },
                stringify: function() {
                    var i = Object.prototype.toString
                        , o = Object.prototype.hasOwnProperty
                        , r = Array.isArray || function(t) {
                        return "[object Array]" === i.call(t)
                    }
                        , e = {
                        '"': '\\"',
                        "\\": "\\\\",
                        "\b": "\\b",
                        "\f": "\\f",
                        "\n": "\\n",
                        "\r": "\\r",
                        "\t": "\\t"
                    }
                        , l = function(t) {
                        return e[t] || "\\u" + (t.charCodeAt(0) + 65536).toString(16).substr(1)
                    }
                        , c = /[\\"\u0000-\u001F\u2028\u2029]/g;
                    return function d(t) {
                        if (null == t)
                            return "null";
                        if ("number" == typeof t)
                            return isFinite(t) ? t.toString() : "null";
                        if ("boolean" == typeof t)
                            return t.toString();
                        if ("object" == typeof t) {
                            if ("function" == typeof t.toJSON)
                                return d(t.toJSON());
                            if (r(t)) {
                                for (var e = "[", n = 0; n < t.length; n++)
                                    e += (n ? ", " : "") + d(t[n]);
                                return e + "]"
                            }
                            if ("[object Object]" === i.call(t)) {
                                var a, s = [];
                                for (a in t)
                                    o.call(t, a) && s.push(d(a) + ": " + d(t[a]));
                                return "{" + s.join(", ") + "}"
                            }
                        }
                        return '"' + t.toString().replace(c, l) + '"'
                    }
                }()
            })
        }
        , function(t, e) {
            Array.prototype.forEach || (Array.prototype.forEach = function(t, e) {
                    var n, a;
                    if (null == this)
                        throw new TypeError(" this is null or not defined");
                    var s, i = Object(this), o = i.length >>> 0;
                    if ("function" != typeof t)
                        throw new TypeError(t + " is not a function");
                    for (1 < arguments.length && (n = e),
                             a = 0; a < o; )
                        a in i && (s = i[a],
                            t.call(n, s, a, i)),
                            a++
                }
            ),
            Array.prototype.map || (Array.prototype.map = function(t, e) {
                    var n, a, s;
                    if (null == this)
                        throw new TypeError(" this is null or not defined");
                    var i, o = Object(this), r = o.length >>> 0;
                    if ("[object Function]" != Object.prototype.toString.call(t))
                        throw new TypeError(t + " is not a function");
                    for (e && (n = e),
                             a = new Array(r),
                             s = 0; s < r; )
                        s in o && (i = o[s],
                            i = t.call(n, i, s, o),
                            a[s] = i),
                            s++;
                    return a
                }
            ),
            Array.prototype.some || (Array.prototype.some = function(t) {
                    "use strict";
                    if (null == this)
                        throw new TypeError("Array.prototype.some called on null or undefined");
                    if ("function" != typeof t)
                        throw new TypeError;
                    for (var e = Object(this), n = e.length >>> 0, a = 2 <= arguments.length ? arguments[1] : void 0, s = 0; s < n; s++)
                        if (s in e && t.call(a, e[s], s, e))
                            return !0;
                    return !1
                }
            ),
            Array.prototype.filter || (Array.prototype.filter = function(t, e) {
                    "use strict";
                    if ("Function" != typeof t && "function" != typeof t || !this)
                        throw new TypeError;
                    var n = this.length >>> 0
                        , a = new Array(n)
                        , s = this
                        , i = 0
                        , o = -1;
                    if (e === undefined)
                        for (; ++o != n; )
                            o in this && t(s[o], o, s) && (a[i++] = s[o]);
                    else
                        for (; ++o != n; )
                            o in this && t.call(e, s[o], o, s) && (a[i++] = s[o]);
                    return a.length = i,
                        a
                }
            )
        }
        , function(module, exports) {
            window.JSON || (window.JSON = {
                parse: function(sJSON) {
                    return eval("(" + sJSON + ")")
                },
                stringify: function() {
                    var i = Object.prototype.toString
                        , o = Array.isArray || function(t) {
                        return "[object Array]" === i.call(t)
                    }
                        , e = {
                        '"': '\\"',
                        "\\": "\\\\",
                        "\b": "\\b",
                        "\f": "\\f",
                        "\n": "\\n",
                        "\r": "\\r",
                        "\t": "\\t"
                    }
                        , r = function(t) {
                        return e[t] || "\\u" + (t.charCodeAt(0) + 65536).toString(16).substr(1)
                    }
                        , l = /[\\"\u0000-\u001F\u2028\u2029]/g;
                    return function c(t) {
                        if (null == t)
                            return "null";
                        if ("number" == typeof t)
                            return isFinite(t) ? t.toString() : "null";
                        if ("boolean" == typeof t)
                            return t.toString();
                        if ("object" == typeof t) {
                            if ("function" == typeof t.toJSON)
                                return c(t.toJSON());
                            if (o(t)) {
                                for (var e = "[", n = 0; n < t.length; n++)
                                    e += (n ? ", " : "") + c(t[n]);
                                return e + "]"
                            }
                            if ("[object Object]" === i.call(t)) {
                                var a, s = [];
                                for (a in t)
                                    t.hasOwnProperty(a) && s.push(c(a) + ": " + c(t[a]));
                                return "{" + s.join(", ") + "}"
                            }
                        }
                        return '"' + t.toString().replace(l, r) + '"'
                    }
                }()
            })
        }
        , function(t, e) {
            t.exports = function(t) {
                var e = document.head || document.getElementsByTagName("head")[0]
                    , n = document.createElement("link");
                n.setAttribute("rel", "stylesheet"),
                    n.setAttribute("href", t),
                    e.appendChild(n)
            }
        }
        , function(t, e, n) {
            var o = n(12)
                , r = (n(13),
                n(14))
                , l = n(23)
                , a = n(24)
                , s = n(25)
                , i = n(26)
                , c = n(27)
                , p = n(28)
                , d = n(29)
                , u = n(2)
                , h = jQuery;
            function g(t) {
                this.thissg = t
            }
            htmlobj = {
                hotSearchChange: function(e) {
                    var n = (n = e.data("thispage")) == undefined ? 1 : parseInt(n);
                    o.hotsearch(function(t) {
                        Math.ceil(t.Currency.length / 10) < ++n && (n = 1),
                            t.hotSearchList = t.Currency.slice(10 * (n - 1), 10 * (n - 1) + 10),
                            e.html(p.template(i)(t)),
                            e.data("thispage", n)
                    }, function(t) {})
                },
                hotStockChange: function(e) {
                    var n = (n = e.data("thispage")) == undefined ? 1 : parseInt(n);
                    o.hotsearch(function(t) {
                        Math.ceil(t.Stock.length / 10) < ++n && (n = 1),
                            t.hotStockList = t.Stock.slice(10 * (n - 1), 10 * (n - 1) + 10),
                            e.html(p.template(c)(t)),
                            e.data("thispage", n)
                    }, function(t) {})
                },
                showHotNew: function(e, t, n) {
                    var a = this;
                    null == t ? o.getNewCount().then(function(t) {
                        a.showHotNewIcon(e, t),
                        n && n(t)
                    }).fail(function(t) {}) : a.showHotNewIcon(e, t)
                },
                showHotNewIcon: function(t, e) {
                    var e = h('<div class="suggest2017hotnewt">' + e + "</div>")
                        , n = (t.newhothtml = e,
                        t.form.append(e),
                    t.input.position().left + t.input.width() - 12)
                        , a = t.input.position().top + 6;
                    e.css({
                        left: n + t.options.newtipsoffset.left,
                        top: a + t.options.newtipsoffset.top
                    })
                },
                showHotNewIconed: function(t) {
                    "undefined" != typeof t.newhothtml && t.newhothtml.addClass("suggest2017hotnewted")
                },
                xgsearch: function(t, e, n, a, s, i, o, r) {
                    var l = this
                        , c = 0
                        , d = 0
                        , u = p.template(xgsearch_init_template)({
                        key: t
                    });
                    s.html(u).show(),
                        this.stock(t, n, a, s, i, function(t) {
                            t || d++,
                                c++,
                                l.checksearchballFuc(d, c, s),
                            o && o()
                        }),
                        this.searchinfo(t, n, s, i, function(t) {
                            t || d++,
                                c++,
                                l.checksearchballFuc(d, c, s),
                            r && r()
                        })
                },
                newSearch: function(n, a, t) {
                    var s = this
                        , e = (n.modules = n.modules.filter(function(t) {
                        return "info" != t
                    }),
                        n.modules.map(function(t) {
                            return '<div class="modules_' + t + '"></div>'
                        }));
                    e.push('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),
                        n.containerc.html(e.join("")),
                        n.container.show(),
                        h.when.apply(h, n.modules.map(function(t) {
                            return s.searchModule({
                                key: n.key,
                                module_name: t,
                                filter: n.filter,
                                stockcount: n.stockcount,
                                gubacount: n.gubacount,
                                container: n.container,
                                containerc: n.containerc,
                                widths: n.widths
                            })
                        })).done(function() {
                            h(".sg2017loading", n.container).remove();
                            try {
                                s.moduleFillHtml({
                                    container: n.container,
                                    containerc: n.containerc,
                                    widths: n.widths,
                                    modules: n.modules,
                                    key: n.key,
                                    showstocklink: n.showstocklink,
                                    dataLink: n.dataLink,
                                    quoteLink: n.quoteLink
                                }, arguments)
                            } catch (e) {}
                            h(".sg2017bb:last", n.container).addClass("nobb");
                            var t = h.trim(n.containerc.text());
                            "" != t && "查看全部搜索结果" != t || (n.containerc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>未能搜索到符合条件的结果</div></div>'),
                                h(".sg2017nof", n.container).show()),
                                a()
                        })
                },
                searchModule: function(t, e, n) {
                    if ("searchall" == e)
                        return u.resolve({
                            key: t
                        });
                    var a = [];
                    switch (e) {
                        case "stock":
                            a = [14];
                            break;
                        case "guba":
                            a = [8];
                            break;
                        case "user":
                            a = [2, 7];
                            break;
                        case "group":
                            a = [3];
                            break;
                        case "module":
                            a = this.getXGModules(n.xg_modules);
                            break;
                        case "info":
                            a = this.getInfoModules(n.infomodules)
                    }
                    var s = 1;
                    return "stock" == e && (s = n.stockcount),
                    "guba" == e && (s = n.gubacount),
                        o.getdata2({
                            key: t,
                            types: a,
                            count: s,
                            filter: n.filter
                        })
                },
                getInfoModules: function(t) {
                    var e = {
                        gg: 10,
                        yb: 6,
                        zx: 20,
                        bk: 12,
                        ht: 5,
                        cfh: 4,
                        gb: 9,
                        wdm: 11,
                        wd: 39
                    };
                    return t instanceof Array ? t.map(function(t) {
                        return e[t]
                    }) : [4, 5, 6, 9, 10, 11, 12, 20, 39]
                },
                getXGModules: function(t) {
                    var e = {
                        tiezi: 9,
                        datacenter: 16,
                        zhuti: 43,
                        baike: 38,
                        zhuanti: 35,
                        huati: 501,
                        cfh: 2,
                        passport: 7,
                        group: 3
                    };
                    return t instanceof Array ? t.map(function(t) {
                        return e[t]
                    }) : [16, 43, 38, 35, 501, 2, 7, 3]
                },
                moduleFillHtml: function(n, a) {
                    n.modules.forEach(function(t, e) {
                        e = a[e],
                            (e = "searchall" == t ? {} : e).key = n.key,
                            e.text = d,
                            e.widths = n.widths,
                            e.showstocklink = n.showstocklink,
                            e.quoteLink = n.quoteLink,
                            e.dataLink = n.dataLink,
                            e = p.template(r[t])(e);
                        h(".modules_" + t, n.container).html(e)
                    })
                },
                checksearchballFuc: function(t, e, n) {
                    2 == e && (2 == t && h(".sg2017nof", n).show(),
                        h(".sg2017loading", n).hide())
                },
                stock: function(n, t, e, a, s, i) {
                    o.stockdata(n, t, e, function(t) {
                        (t = t.QuotationCodeTable).key = n,
                            t.hasdata = null != t.Data && 0 < t.Data.length,
                            t.text = d,
                            t.widths = s;
                        var e = p.template(modules_stock_template)(t);
                        h(".xgstock", a).html(e),
                        i && i(t.hasdata)
                    }, function(t) {})
                },
                searchinfo: function(n, t, a, s, i) {
                    o.searchinfo(n, t, function(t) {
                        t.key = n,
                            t.text = d,
                            t.hasguba = null != t.GubaCodeTable.Data && 0 < t.GubaCodeTable.Data.length,
                            t.hasuser = null != t.FortuneAccount.Data && 0 < t.FortuneAccount.Data.length || null != t.Passport.Data && 0 < t.Passport.Data.length,
                            t.hasxg = 0 < t.Notice.TotalCount || 0 < t.ResearchReport.TotalCount || 0 < t.CMSArticle.TotalCount || 0 < t.Blog.TotalCount || 0 < t.GubaTopic.TotalCount || 0 < t.FortuneArticle.TotalCount || 0 < t.GubaArticle.TotalCount || 0 < t.WenDongMi.TotalCount,
                            t.widths = s;
                        var e = p.template(l)(t);
                        h(".xgsearch", a).html(e),
                        i && i(t.hasguba || t.hasuser || t.hasxg)
                    }, function(t) {})
                }
            },
                g.prototype.init = function(t) {
                    return h(p.template(a)({
                        width: t
                    }))
                }
                ,
                g.prototype.blankInit = function() {
                    var n = this;
                    n.thissg.divc.html('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),
                        o.hotsearch(function(t) {
                            t.search_history = o.getSearchHistory(10),
                                t.widths = n.thissg.widths,
                                t.text = d,
                                t.hotStockLink = n.thissg.options.hotStockLink,
                                t.hotSearchList = t.Currency.slice(0, 10),
                                t.hotStockList = t.Stock.slice(0, 10);
                            var e = h(p.template(s)(t));
                            h(".hotsearchdiv", e).html(p.template(i)(t)),
                                h(".hotstockdiv", e).html(p.template(c)(t)),
                                n.thissg.divc.html(e),
                                n.thissg.div.show()
                        }, function(t) {})
                }
                ,
                g.prototype.newSearch = function() {
                    var e = this
                        , t = this.thissg.options.modules.map(function(t) {
                        return '<div class="modules_' + t + '"></div>'
                    });
                    return t.push('<div class="sg2017loading"><div class="sg2017loadingimg"></div></div>'),
                        this.thissg.divc.html(t.join("")),
                        this.thissg.div.show(),
                        e.pbword = "",
                        h.when.apply(h, this.thissg.options.modules.map(function(t) {
                            return e.searchAndShowModule(t)
                        })).done(function() {
                            h(".sg2017loading", e.thissg.div).remove(),
                                h(".sg2017bb:last", e.thissg.div).addClass("nobb");
                            var t = h.trim(e.thissg.divc.text());
                            "" != t && "查看全部搜索结果" != t || (e.pbword ? e.thissg.divc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>' + e.pbword + "</div></div>") : e.thissg.divc.prepend('<div class="sg2017nof"><div class="sg2017nofi"><span class="sggicon sggicon_face"></span><br>未能搜索到符合条件的结果</div></div>'),
                                h(".modules_searchall", e.thissg.divc).remove(),
                                h(".sg2017nof", e.thissg.div).show())
                        })
                }
                ,
                g.prototype.searchAndShowModule = function(s) {
                    var i = this
                        , o = this.thissg.options;
                    return o.modules = o.modules.filter(function(t) {
                        return "info" != t
                    }),
                        htmlobj.searchModule(this.thissg.key, s, o).then(function(t) {
                            if (t.key != i.thissg.key)
                                return !1;
                            var e = "searchall" == s ? {} : t
                                , t = (e.key = i.thissg.key,
                                e.text = d,
                                e.widths = i.thissg.widths,
                                e.showstocklink = o.showstocklink,
                                e.quoteLink = o.quoteLink,
                                e.dataLink = o.dataLink,
                                s);
                            for (n in "guba" == s && o.gubatable && (t = "guba_table"),
                                e)
                                if (e[n] && "B0001" == e[n].BizCode && e[n].BizMsg) {
                                    i.pbword = e[n].BizMsg;
                                    break
                                }
                            if ("info" == t) {
                                var n, a = !1;
                                for (n in e)
                                    if (e[n] && 0 == e[n].Status) {
                                        a = !0;
                                        break
                                    }
                                e.hasdata = a
                            }
                            t = p.template(r[t])(e);
                            h(".modules_" + s, i.thissg.div).html(t)
                        })
                }
                ,
                g.prototype.showHotNew = function(t, e) {
                    var a = this;
                    return new u(function(e, n) {
                            null == t ? o.getNewCount().then(function(t) {
                                a.showHotNewIcon(t),
                                    e(t)
                            }).fail(function(t) {
                                n(t)
                            }) : a.showHotNewIcon(t)
                        }
                    )
                }
                ,
                g.prototype.showHotNewIcon = function(t) {
                    var t = h('<div class="suggest2017hotnewt" style="position: absolute;">' + t + "</div>")
                        , e = (this.thissg.newhothtml = t,
                        this.thissg.form.prepend(t),
                    this.thissg.input.position().left + this.thissg.input.width() - 12)
                        , n = this.thissg.input.position().top + 6;
                    t.css({
                        left: e + this.thissg.options.newtipsoffset.left,
                        top: n + this.thissg.options.newtipsoffset.top
                    })
                }
                ,
                g.prototype.showHotNewIconed = function() {
                    "undefined" != typeof this.thissg.newhothtml && this.thissg.newhothtml.addClass("suggest2017hotnewted")
                }
                ,
                g.prototype.hotSearchChange = function(e) {
                    var n = this
                        , a = (a = e.data("thispage")) == undefined ? 1 : parseInt(a);
                    o.hotsearch(function(t) {
                        Math.ceil(t.Currency.length / 10) < ++a && (a = 1),
                            t.text = d,
                            t.widths = n.thissg.widths,
                            t.hotSearchList = t.Currency.slice(10 * (a - 1), 10 * (a - 1) + 10),
                            e.html(p.template(i)(t)),
                            e.data("thispage", a)
                    }, function(t) {})
                }
                ,
                g.prototype.hotStockChange = function(e) {
                    var n = this
                        , a = (a = e.data("thispage")) == undefined ? 1 : parseInt(a);
                    o.hotsearch(function(t) {
                        Math.ceil(t.Stock.length / 10) < ++a && (a = 1),
                            t.text = d,
                            t.widths = n.thissg.widths,
                            t.hotStockList = t.Stock.slice(10 * (a - 1), 10 * (a - 1) + 10),
                            e.html(p.template(c)(t)),
                            e.data("thispage", a)
                    }, function(t) {})
                }
                ,
                t.exports = g
        }
        , function(t, e, n) {
            var r = jQuery
                , a = n(0)
                , s = n(1)
                , i = n(2)
                , o = (s.get("apiurl", "prod"),
                s.get("apiurl2", "prod"))
                , l = o
                , c = {
                search: {}
            };
            t.exports = {
                getdata: function(t, e, n, a, s, i) {
                    var o = encodeURIComponent(t + "||" + a.join(","));
                    c.search[o] == undefined ? (t = {
                        input: t,
                        type: a.join(","),
                        token: "D43BF722C8E33BDC906FB84D85E326E8",
                        markettype: e.markettype,
                        mktnum: e.mktnum,
                        jys: e.jys,
                        classify: e.classify,
                        securitytype: e.securitytype
                    },
                    0 < n && (t.count = n),
                        r.ajax({
                            url: l + "suggest/get?cb=?",
                            type: "GET",
                            dataType: "jsonp",
                            data: t,
                            scriptCharset: "utf-8"
                        }).done(function(t) {
                            c.search[o] = t,
                                s(t)
                        }).fail(function(t) {
                            i(t)
                        })) : s(c.search[o])
                },
                getdata2: function(s) {
                    return new i(function(e, n) {
                            var t, a = encodeURIComponent(s.key + "||" + s.types.join(",") + "||" + JSON.stringify(s.filter));
                            c.search[a] == undefined ? (t = {
                                input: s.key,
                                type: s.types.join(","),
                                token: "D43BF722C8E33BDC906FB84D85E326E8",
                                markettype: s.filter.markettype,
                                mktnum: s.filter.mktnum,
                                jys: s.filter.jys,
                                classify: s.filter.classify,
                                securitytype: s.filter.securitytype,
                                status: s.filter.status,
                                count: s.count
                            },
                                r.ajax({
                                    url: o + "suggest/get?cb=?",
                                    type: "GET",
                                    dataType: "jsonp",
                                    data: t,
                                    scriptCharset: "utf-8"
                                }).done(function(t) {
                                    t.key = s.key,
                                        c.search[a] = t,
                                        e(t)
                                }).fail(function(t) {
                                    n(t)
                                })) : e(c.search[a])
                        }
                    )
                },
                getNewCount: function() {
                    var e = r.Deferred();
                    return r.ajax({
                        url: l + "suggest/getbubble?cb=?",
                        type: "GET",
                        dataType: "jsonp",
                        data: {
                            token: "D43BF722C8E33BDC906FB84D85E326E8"
                        },
                        scriptCharset: "utf-8"
                    }).done(function(t) {
                        0 == t.Status && t.Data ? e.resolve(t.Data.BubbleCount) : e.reject(new Error(t.Message))
                    }).fail(function(t) {
                        e.reject(t)
                    }),
                        e.promise()
                },
                stockdata: function(t, e, n, a, s) {
                    this.getdata(t, e, n, [14], function(t) {
                        c.stockdata = t,
                            a(t)
                    }, s)
                },
                searchinfo: function(t, e, n, a) {
                    return this.getdata(t, e, null, [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 20], n, a)
                },
                search: function(t, e, n) {
                    return this.getdata2(t, e, n)
                },
                hotsearch: function(n, a) {
                    c.hotsearch == undefined ? r.ajax({
                        url: l + "HotKeyword/GetBatch?cb=?",
                        type: "GET",
                        dataType: "jsonp",
                        data: {
                            count: 20,
                            stockCount: 30,
                            token: "D43BF722C8E33BDC906FB84D85E326E8"
                        },
                        scriptCharset: "utf-8"
                    }).done(function(t) {
                        var e;
                        0 == t.Status ? (t.Data.Currency.forEach(function(t, e) {
                            t.index = e
                        }),
                            t.Data.Stock.forEach(function(t, e) {
                                t.index = e
                            }),
                            c.hotsearch = t.Data,
                            e = JSON.parse(JSON.stringify(t)),
                            n(e.Data)) : a(new Error(t.Message))
                    }).fail(function(t) {
                        a(t)
                    }) : n(c.hotsearch)
                },
                getSearchHistory: function(t) {
                    var e = a.get("emshistory");
                    if (!e)
                        return [];
                    try {
                        return (e = JSON.parse(e)).slice(0, t)
                    } catch (n) {
                        return []
                    }
                }
            }
        }
        , function(t, e) {
            t.exports = '{{? it.hasdata }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关证券\r\n    <div class="sg2017tm"><a href="http://quote.eastmoney.com/search.html?stockcode={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho sg2017stockt">\r\n      {{~it.Data:value:index}}\r\n      <tr data-stockdata=\'{{= JSON.stringify(value) }}\'>\r\n          <td>{{= value.SecurityTypeName }}</td>\r\n          <td>{{= it.text.highLight(value.Code, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.Name, 12 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.PinYin.toUpperCase(), 8 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          {{? it.showstocklink }}\r\n          <td class="tdl5">\r\n            <a href="http://so-link.eastmoney.com/link?input={{= value.Code }}&returnurl={{= encodeURIComponent(\'http://quote.eastmoney.com/unify/r/\' + value.QuoteID) }}&marketType={{= value.MarketType }}" target="_blank" class="bblink">行情</a>\r\n            {{? value.Classify.toLowerCase() == \'astock\' || value.Classify.toLowerCase() == \'bstock\' }}\r\n            <a href="http://so-link.eastmoney.com/link?input={{= value.Code }}&returnurl={{= encodeURIComponent(\'http://data.eastmoney.com/stockdata/\' + value.Code + \'.html\') }}&marketType=" target="_blank" class="rblink">数据</a>\r\n            {{??}}\r\n            <span class="nolink">数据</span>\r\n            {{?}}\r\n          </td>\r\n          {{?}}\r\n        </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e, n) {
            var a = n(15)
                , s = n(16)
                , i = n(17)
                , o = n(18)
                , r = n(19)
                , l = n(20)
                , c = n(21)
                , n = n(22);
            t.exports = {
                stock: a,
                guba: s,
                user: o,
                module: r,
                group: l,
                info: c,
                searchall: n,
                guba_table: i
            }
        }
        , function(t, e) {
            t.exports = '{{? it.QuotationCodeTable && it.QuotationCodeTable.Data != null && it.QuotationCodeTable.Data.length > 0}}\r\n<div class="sg2017b xgstock">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关证券\r\n    <div class="sg2017tm"><a data-stype="zqjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://quote.eastmoney.com/search.html?stockcode={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.QuotationCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho sg2017stockt">\r\n      {{~it.QuotationCodeTable.Data:value:index}}\r\n      <tr data-stockdata=\'{{! JSON.stringify(value) }}\'>\r\n          <td class="fcgray">{{= value.SecurityTypeName }}</td>\r\n          <td>{{= it.text.highLight(value.Code, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.Name, 12 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          <td>{{= it.text.leftAndHighLight(value.PinYin.toUpperCase(), 8 + it.widths.text_left_fix_2, it.key) }}</td>\r\n          {{? it.showstocklink }}\r\n          <td class="tdl5">\r\n            <a data-stype="hq" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.quoteLink == null }}//quote.eastmoney.com/unify/r/{{= value.QuoteID }}{{??}}{{= it.quoteLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType, Classify: value.Classify}) }}{{?}}" target="_blank" class="bblink suggesttsquotelink">行情</a>\r\n            {{? (value.Classify.toLowerCase() == \'astock\' || value.Classify.toLowerCase() == \'bstock\' || value.Classify.toLowerCase() == \'23\') && value.MktNum != \'47\' }}\r\n            <a data-stype="sj" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.dataLink == null }}//data.eastmoney.com/stockdata/{{= value.Code }}.html{{??}}{{= it.dataLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType, Classify: value.Classify}) }}{{?}}" target="_blank" class="rblink suggesttsdatalink">数据</a>\r\n            {{??}}\r\n            <span class="nolink">数据</span>\r\n            {{?}}\r\n          </td>\r\n          {{?}}\r\n        </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}\r\n'
        }
        , function(t, e) {
            t.exports = '{{? it.GubaCodeTable && it.GubaCodeTable.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a data-stype="gbjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=2" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017hp sg2017hpb">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n        <a data-stype="gb" data-skey="{{= encodeURIComponent(value.ShortName + \'吧\') }}" href="{{= value.Url }}" data-searchhistory="{{= value.ShortName }}" target="_blank">{{= it.text.highLight(value.ShortName, it.key) }}吧</a>\r\n      {{~}}\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '{{? it.GubaCodeTable && it.GubaCodeTable.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a data-stype="gbjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=2" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <table class="sg2017table sg2017tableho">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n      <tr data-gubadata=\'{{! JSON.stringify(value) }}\'>\r\n        <td>{{= it.text.highLight(value.OuterCode, it.key) }}</td>\r\n        <td>{{= it.text.highLight(value.ShortName, it.key) }}吧</td>\r\n        <td>{{= it.text.highLight(value.HeadCharacter, it.key) }}</td>\r\n      </tr>\r\n      {{~}}\r\n    </table>\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '{{? (it.FortuneAccount && it.FortuneAccount.Data != null) || (it.Passport && it.Passport.Data != null)}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关用户\r\n  </div>\r\n  <div class="sg2017bb">\r\n    {{? it.FortuneAccount.Data && it.FortuneAccount.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.FortuneAccount.Data[0].NickName) }}" href="{{= it.FortuneAccount.Data[0].Url }}" class="bbrlink" data-searchhistory="{{= it.FortuneAccount.Data[0].NickName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">财富号</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.FortuneAccount.Data[0].NickName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/CAccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.FortuneAccount.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="by" data-skey="{{= encodeURIComponent(it.Passport.Data[0].ualias) }}" href="{{= it.Passport.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Passport.Data[0].ualias }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">吧友</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="byjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/User/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=3" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '{{? (it.FortuneAccount && it.FortuneAccount.Data != null) || (it.DataCenter && it.DataCenter.Data != null) || ( it.CategoryInvestment && it.CategoryInvestment.Data != null) || ( it.NewEncyclopedia != undefined && it.NewEncyclopedia.Data != null) || ( it.CMSTopic && it.CMSTopic.Data != null) || ( it.GubaTopic && it.GubaTopic.Data != null) || ( it.Passport && it.Passport.Data != null) || ( it.Portfolio && it.Portfolio.Data != null) || ( it.GubaArticle && it.GubaArticle.Data != null)}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关模块\r\n  </div>\r\n  <div class="sg2017bb">\r\n\r\n    {{? it.GubaArticle && it.GubaArticle.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.GubaArticle.Data[0].Name) }}" href="{{= it.GubaArticle.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.GubaArticle.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">帖子</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.GubaArticle.Data[0].title, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.GubaArticle.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="https://so.eastmoney.com/tiezi/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n    \r\n    {{? it.DataCenter && it.DataCenter.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.DataCenter.Data[0].Name) }}" href="{{= it.DataCenter.Data[0].PageUrl }}" class="bbrlink" data-searchhistory="{{= it.DataCenter.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">数据</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.DataCenter.Data[0].Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.DataCenter.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://data.eastmoney.com/center/" target="_blank" class="blink">{{= it.text.formatNum(it.DataCenter.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.CategoryInvestment && it.CategoryInvestment.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.CategoryInvestment.Data[0].CategoryName) }}" href="http://quote.eastmoney.com/zhuti/{{= it.CategoryInvestment.Data[0].IsImportant == \'1\'?\'topic\':\'subject\' }}/{{= it.CategoryInvestment.Data[0].CategoryCode }}" class="bbrlink" data-searchhistory="{{= it.CategoryInvestment.Data[0].CategoryName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">主题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.CategoryInvestment.Data[0].CategoryName, 22 + it.widths.text_left_fix, it.key) }}\r\n            {{? it.CategoryInvestment.Data[0].ParentName }}\r\n            <span class="ztspan" onclick="window.open(\'http://quote.eastmoney.com/zhuti/topic/{{= it.CategoryInvestment.Data[0].ParentCode }}\');return false;">{{= it.CategoryInvestment.Data[0].ParentName }}</span>\r\n            {{?}}\r\n          </span>\r\n        </div>\r\n      </a>\r\n      {{? it.CategoryInvestment.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://quote.eastmoney.com/zhuti/" target="_blank" class="blink">{{= it.text.formatNum(it.CategoryInvestment.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.NewEncyclopedia && it.NewEncyclopedia.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.NewEncyclopedia.Data[0].EncyclopediaName) }}" href="http://baike.eastmoney.com/item/{{= encodeURIComponent(it.NewEncyclopedia.Data[0].EncyclopediaName) }}" class="bbrlink" data-searchhistory="{{= it.NewEncyclopedia.Data[0].EncyclopediaName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">百科</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.NewEncyclopedia.Data[0].EncyclopediaName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.NewEncyclopedia.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/baike/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.NewEncyclopedia.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.CMSTopic && it.CMSTopic.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.CMSTopic.Data[0].Topic_Name) }}" href="http://topic.eastmoney.com/{{= it.CMSTopic.Data[0].Topic_PinYin }}/" class="bbrlink" data-searchhistory="{{= it.CMSTopic.Data[0].Topic_Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">专题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.CMSTopic.Data[0].Topic_Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.CMSTopic.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://topic.eastmoney.com/" target="_blank" class="blink">{{= it.text.formatNum(it.CMSTopic.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}} \r\n\r\n    {{? it.GubaTopic && it.GubaTopic.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="cfh" data-skey="{{= encodeURIComponent(it.GubaTopic.Data[0].Name) }}" href="http://gubatopic.eastmoney.com/topic_v3.html?htid={{= it.GubaTopic.Data[0].Id }}" class="bbrlink" data-searchhistory="{{= it.GubaTopic.Data[0].Name }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">话题</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.GubaTopic.Data[0].Name, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.GubaTopic.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="cfhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://guba.eastmoney.com/search.aspx?topic={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}     \r\n       \r\n\r\n\r\n\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="by" data-skey="{{= encodeURIComponent(it.Passport.Data[0].ualias) }}" href="{{= it.Passport.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Passport.Data[0].ualias }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">用户</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.Passport.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="byjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/caccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n\r\n    {{? it.Portfolio && it.Portfolio.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="zh" data-skey="{{= encodeURIComponent(it.Portfolio.Data[0].zuheName) }}" href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Portfolio.Data[0].zuheName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      {{? it.Portfolio.TotalCount > 1}}\r\n      <div class="sg2017xgyzm"><a data-stype="zhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n      {{?}}\r\n    </div>\r\n    {{?}}\r\n    \r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '{{? it.Portfolio && it.Portfolio.Data != null}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关组合\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017xgyz">\r\n      <a data-stype="zh" data-skey="{{= encodeURIComponent(it.Portfolio.Data[0].zuheName) }}" href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" data-searchhistory="{{= it.Portfolio.Data[0].zuheName }}" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a data-stype="zhjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '{{? it.hasdata }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关信息 <span class="sg2017tt">以下为“<span class="sg2017hl">{{! it.text.txtLeft(it.key,20)}}</span>”的搜索个数</span>\r\n  </div>\r\n  <div class="sg2017bb">\r\n      <div class="sg2017hpb">\r\n        {{? it.Notice && it.Notice.Status == 0 }}\r\n          <a data-stype="ggjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Ann/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">公告 <span class="bspan">{{= it.text.formatNum(it.Notice.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.ResearchReport && it.ResearchReport.Status == 0 }}\r\n          <a data-stype="ybjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Yanbao/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">研报 <span class="bspan">{{= it.text.formatNum(it.ResearchReport.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.CMSArticle && it.CMSArticle.Status == 0 }}\r\n          <a data-stype="zxjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/news/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">资讯 <span class="bspan">{{= it.text.formatNum(it.CMSArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Blog && it.Blog.Status == 0 }}\r\n          <a data-stype="bkjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/Blog/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">博客 <span class="bspan">{{= it.text.formatNum(it.Blog.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaTopic && it.GubaTopic.Status == 0 }}\r\n          <a data-stype="htjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank">话题 <span class="bspan">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.FortuneArticle && it.FortuneArticle.Status == 0 }}\r\n          <a data-stype="cfhwzjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/CArticle/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">财富号文章 <span class="bspan">{{= it.text.formatNum(it.FortuneArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaArticle && it.GubaArticle.Status == 0 }}\r\n          <a data-stype="gbwzjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">股吧 <span class="bspan">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.WenDongMi && it.WenDongMi.Status == 0 }}\r\n          <a data-stype="wdmjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/QA/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">问董秘 <span class="bspan">{{= it.text.formatNum(it.WenDongMi.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Ask && it.Ask.Status == 0 }}\r\n          <a data-stype="wdmjg" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/ask/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">悬赏问答 <span class="bspan">{{= it.text.formatNum(it.Ask.TotalCount) }}</span></a>\r\n        {{?}}\r\n      </div>\r\n  </div>\r\n</div>\r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '<div class="sg2017va"><a data-stype="all" data-skey="{{= encodeURIComponent(it.key) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">查看全部搜索结果</a></div>'
        }
        , function(t, e) {
            t.exports = '{{? it.hasguba}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关股吧\r\n    <div class="sg2017tm"><a href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum( it.GubaCodeTable.TotalCount) }}个结果>></a></div>\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017hp sg2017hpb">\r\n      {{~it.GubaCodeTable.Data:value:index}}\r\n        <a href="{{= value.Url }}" target="_blank">{{= it.text.highLight(value.ShortName, it.key) }}吧</a>\r\n      {{~}}\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.hasuser}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关用户\r\n  </div>\r\n  <div class="sg2017bb">\r\n    {{? it.FortuneAccount && it.FortuneAccount.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.FortuneAccount.Data[0].Url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">财富号</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.FortuneAccount.Data[0].NickName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/CAccount/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.FortuneAccount.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n    {{? it.Passport && it.Passport.Data != null }}\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.Passport.Data[0].url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">吧友</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Passport.Data[0].ualias, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/User/s?KeyWord={{= encodeURIComponent(it.key) }}&swtype=3" target="_blank" class="blink">{{= it.text.formatNum(it.Passport.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n    {{?}}\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.Portfolio && it.Portfolio.Data != null }}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关组合\r\n  </div>\r\n  <div class="sg2017bb">\r\n    <div class="sg2017xgyz">\r\n      <a href="{{= it.Portfolio.Data[0].url }}" class="bbrlink" target="_blank">\r\n        <div class="sg2land" style="width:{{= it.widths.sg2land }}px;">\r\n          <span class="sg2landl1 fcgray">组合</span><span class="sg2landl2" style="width:{{= it.widths.sg2landl2 }}px;">{{= it.text.leftAndHighLight(it.Portfolio.Data[0].zuheName, 22 + it.widths.text_left_fix, it.key) }}</span>\r\n        </div>\r\n      </a>\r\n      <div class="sg2017xgyzm"><a href="http://so.eastmoney.com/ZuHe/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank" class="blink">{{= it.text.formatNum(it.Portfolio.TotalCount) }}个结果>></a></div>\r\n    </div>\r\n  </div>\r\n</div>\r\n{{?}}\r\n\r\n{{? it.hasxg}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_link"></span>相关信息 <span class="sg2017tt">以下为“<span class="sg2017hl">{{! it.text.txtLeft(it.key,20)}}</span>”的搜索个数</span>\r\n  </div>\r\n  <div class="sg2017bb nobb">\r\n      <div class="sg2017hpb">\r\n        {{? it.Notice.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Ann/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">公告 <span class="bspan">{{= it.text.formatNum(it.Notice.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.ResearchReport.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Yanbao/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">研报 <span class="bspan">{{= it.text.formatNum(it.ResearchReport.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.CMSArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/news/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">资讯 <span class="bspan">{{= it.text.formatNum(it.CMSArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.Blog.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/Blog/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">博客 <span class="bspan">{{= it.text.formatNum(it.Blog.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaTopic.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(it.key) }}" target="_blank">话题 <span class="bspan">{{= it.text.formatNum(it.GubaTopic.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.FortuneArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/CArticle/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">财富号文章 <span class="bspan">{{= it.text.formatNum(it.FortuneArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.GubaArticle.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/TieZi/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">股吧 <span class="bspan">{{= it.text.formatNum(it.GubaArticle.TotalCount) }}</span></a>\r\n        {{?}}\r\n        {{? it.WenDongMi.Status == 0 }}\r\n          <a href="http://so.eastmoney.com/QA/s?KeyWord={{= encodeURIComponent(it.key) }}" target="_blank">问董秘 <span class="bspan">{{= it.text.formatNum(it.WenDongMi.TotalCount) }}</span></a>\r\n        {{?}}\r\n      </div>\r\n  </div>\r\n</div> \r\n{{?}}'
        }
        , function(t, e) {
            t.exports = '<div class="suggest2017" style="width:{{= it.width }}px;">\r\n  <div class="suggest2017c"></div>\r\n</div>\r\n'
        }
        , function(t, e) {
            t.exports = '{{?it.search_history.length > 0}}\r\n<div class="sg2017b sg2017hsr">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_history"></span>历史搜索\r\n    <div class="sg2017tm2"><a href="javascript:;" class="clearhsr" target="_self">清空历史</a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix">\r\n    <ul class="sg2017lp clearfix">\r\n        {{~it.search_history:value:index}}\r\n        <li style="width:{{= it.widths.sg2017ll}}px;"><a data-stype="lsss" data-skey="{{= encodeURIComponent(value) }}" href="http://so.eastmoney.com/web/s?keyword={{= encodeURIComponent(value) }}" target="_blank">{{= it.text.txtLeft(value, 20 + it.widths.text_left_fix_2, true) }}</a>\r\n        </li>\r\n        {{~}}\r\n    </ul>          \r\n  </div>\r\n</div>\r\n{{?}}\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_hotsearch"></span>热门搜索\r\n    <div class="sg2017tm2"><a href="javascript:;" class="sgchange hotsearchchange" target="_self">换一换<span class="sggicon sggicon_change"></span></a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix hotsearchdiv"></div>\r\n</div>\r\n<div class="sg2017b">\r\n  <div class="sg2017t">\r\n    <span class="sggicon sggicon_hotstock"></span>热门个股\r\n    <div class="sg2017tm2"><a href="javascript:;" class="sgchange hotstockchange" target="_self">换一换<span class="sggicon sggicon_change"></span></a></div>\r\n  </div>\r\n  <div class="sg2017bb clearfix nobb hotstockdiv"></div>\r\n</div>'
        }
        , function(t, e) {
            t.exports = '<ul class="sg2017l sg2017ll" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{~it.hotSearchList:value:index}}\r\n  <li><a data-stype="rmss" data-skey="{{= encodeURIComponent(value.KeyPhrase) }}" href="{{= value.JumpAddress }}" target="_blank"><span class="{{? value.index < 3 }}indexred{{?}}">{{= value.index + 1 }}.</span>{{= it.text.txtLeft(value.KeyPhrase, 20 + it.widths.text_left_fix_2, true) }}</a>\r\n  {{? value.HotKeywordStatus == "3"}}\r\n    <span class="sggicon sggicon_new"></span>\r\n  {{?}}\r\n  </li>\r\n  {{? index == 4 }}\r\n</ul>\r\n<ul class="sg2017l" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{?}}\r\n  {{~}}\r\n</ul>'
        }
        , function(t, e) {
            t.exports = '<ul class="sg2017l sg2017ll" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{~it.hotStockList:value:index}}\r\n  <li><a data-stype="rsgg" data-skey="{{= encodeURIComponent(value.Name) }}" href="{{? it.hotStockLink == null }}{{= value.JumpAddress }}{{??}}{{= it.hotStockLink({Code: value.Code, Name: value.Name, MarketType: value.MarketType}) }}{{?}}" target="_blank"><span class="{{? value.index < 3 }}indexred{{?}}">{{= value.index + 1 }}.</span>{{= it.text.txtLeft(value.Name + \'[\' + value.Code + \']\', 20 + it.widths.text_left_fix_2, true) }}</a>\r\n  {{? value.HotKeywordStatus == "3"}}\r\n    <span class="sggicon sggicon_new"></span>\r\n  {{?}}\r\n  </li>\r\n  {{? index == 4 }}\r\n</ul>\r\n<ul class="sg2017l" style="width:{{= it.widths.sg2017ll}}px;">\r\n  {{?}}\r\n  {{~}}\r\n</ul>'
        }
        , function(t, e, n) {
            var c = {
                version: "1.1.1",
                templateSettings: {
                    evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
                    interpolate: /\{\{=([\s\S]+?)\}\}/g,
                    encode: /\{\{!([\s\S]+?)\}\}/g,
                    use: /\{\{#([\s\S]+?)\}\}/g,
                    useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,
                    define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
                    defineParams: /^\s*([\w$]+):([\s\S]+)/,
                    conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
                    iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
                    varname: "it",
                    strip: !0,
                    append: !0,
                    selfcontained: !1,
                    doNotSkipEncoded: !1
                },
                template: undefined,
                compile: undefined,
                log: !0,
                encodeHTMLSource: function(t) {
                    var e = {
                        "&": "&#38;",
                        "<": "&#60;",
                        ">": "&#62;",
                        '"': "&#34;",
                        "'": "&#39;",
                        "/": "&#47;"
                    }
                        , n = t ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;
                    return function(t) {
                        return t ? t.toString().replace(n, function(t) {
                            return e[t] || t
                        }) : ""
                    }
                }
            }
                , d = function() {
                return this || (0,
                    eval)("this")
            }()
                , u = (void 0 !== t && t.exports ? t.exports = c : (n = function() {
                return c
            }
                .call(e, n, e, t)) !== undefined && (t.exports = n),
                {
                    append: {
                        start: "'+(",
                        end: ")+'",
                        startencode: "'+encodeHTML("
                    },
                    split: {
                        start: "';out+=(",
                        end: ");out+='",
                        startencode: "';out+=encodeHTML("
                    }
                })
                , p = /$^/;
            function h(t) {
                return t.replace(/\\('|\\)/g, "$1").replace(/[\r\t\n]/g, " ")
            }
            c.template = function(t, e, n) {
                var a, s, i = (e = e || c.templateSettings).append ? u.append : u.split, o = 0, n = e.use || e.define ? function r(s, t, i) {
                    return ("string" == typeof t ? t : t.toString()).replace(s.define || p, function(t, a, e, n) {
                        return (a = 0 === a.indexOf("def.") ? a.substring(4) : a)in i || (":" === e ? (s.defineParams && n.replace(s.defineParams, function(t, e, n) {
                            i[a] = {
                                arg: e,
                                text: n
                            }
                        }),
                        a in i || (i[a] = n)) : new Function("def","def['" + a + "']=" + n)(i)),
                            ""
                    }).replace(s.use || p, function(t, e) {
                        return s.useParams && (e = e.replace(s.useParams, function(t, e, n, a) {
                            var s;
                            if (i[n] && i[n].arg && a)
                                return s = (n + ":" + a).replace(/'|\\/g, "_"),
                                    i.__exp = i.__exp || {},
                                    i.__exp[s] = i[n].text.replace(new RegExp("(^|[^\\w$])" + i[n].arg + "([^\\w$])","g"), "$1" + a + "$2"),
                                e + "def.__exp['" + s + "']"
                        })),
                        (e = new Function("def","return " + e)(i)) && r(s, e, i)
                    })
                }(e, t, n || {}) : t, n = ("var out='" + (e.strip ? n.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, " ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, "") : n).replace(/'|\\/g, "\\$&").replace(e.interpolate || p, function(t, e) {
                    return i.start + h(e) + i.end
                }).replace(e.encode || p, function(t, e) {
                    return a = !0,
                    i.startencode + h(e) + i.end
                }).replace(e.conditional || p, function(t, e, n) {
                    return e ? n ? "';}else if(" + h(n) + "){out+='" : "';}else{out+='" : n ? "';if(" + h(n) + "){out+='" : "';}out+='"
                }).replace(e.iterate || p, function(t, e, n, a) {
                    return e ? (o += 1,
                        s = a || "i" + o,
                        e = h(e),
                    "';var arr" + o + "=" + e + ";if(arr" + o + "){var " + n + "," + s + "=-1,l" + o + "=arr" + o + ".length-1;while(" + s + "<l" + o + "){" + n + "=arr" + o + "[" + s + "+=1];out+='") : "';} } out+='"
                }).replace(e.evaluate || p, function(t, e) {
                    return "';" + h(e) + "out+='"
                }) + "';return out;").replace(/\n/g, "\\n").replace(/\t/g, "\\t").replace(/\r/g, "\\r").replace(/(\s|;|\}|^|\{)out\+='';/g, "$1").replace(/\+''/g, "");
                a && (e.selfcontained || !d || d._encodeHTML || (d._encodeHTML = c.encodeHTMLSource(e.doNotSkipEncoded)),
                    n = "var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : (" + c.encodeHTMLSource.toString() + "(" + (e.doNotSkipEncoded || "") + "));" + n);
                try {
                    return new Function(e.varname,n)
                } catch (l) {
                    throw l
                }
            }
                ,
                c.compile = function(t, e) {
                    return c.template(t, null, e)
                }
                ,
                t.exports = c
        }
        , function(t, e) {
            t.exports = {
                formatNum: function(t) {
                    if (t == undefined || "" == t || isNaN(t))
                        return "";
                    var e = "";
                    if (1e8 <= t)
                        t /= 1e8,
                            e = "亿";
                    else {
                        if (!(1e4 <= t))
                            return t;
                        t /= 1e4,
                            e = "万"
                    }
                    var n = t.toFixed(2);
                    return (n = 1e3 <= parseInt(t) ? t.toFixed(1) : n).toString() + e
                },
                cut: function(t, e) {
                    return t.length > e ? t.substring(0, e) + "..." : t
                },
                txtLength: function(t) {
                    for (var e = 0, n = 0; n < t.length; n++)
                        255 < t.charCodeAt(n) ? e += 2 : e++;
                    return e
                },
                txtLeft: function(t, e, n) {
                    if (null == t || "" == t)
                        return "";
                    for (var a = 0, s = 0; s < t.length; s++)
                        if (255 < t.charCodeAt(s) ? a += 2 : a++,
                        e + 3 < a)
                            return n ? '<span title="' + t + '">' + t.substring(0, s) + "...</span>" : t.substring(0, s) + "...";
                    return t
                },
                highLight: function(t, e) {
                    try {
                        var n = new RegExp(e,"ig");
                        t = t.replace(n, function(t) {
                            return '<span class="sg2017hl">' + t + "</span>"
                        })
                    } catch (a) {}
                    return t
                },
                leftAndHighLight: function(t, e, n) {
                    if (null == t || "" == t)
                        return "";
                    for (var a = t, s = !1, i = 0, o = 0; o < t.length; o++)
                        if (255 < t.charCodeAt(o) ? i += 2 : i++,
                        e + 3 < i) {
                            s = !0,
                                a = '<span title="' + t + '">' + this.highLight(t.substring(0, o), n) + "...</span>";
                            break
                        }
                    return s ? a : this.highLight(a, n)
                }
            }
        }
        , function(t, e, n) {
            var a = n(0);
            t.exports = {
                _count: 20,
                _histotyLength: 40,
                _historyCookieName: "emshistory",
                getHistory: function() {
                    var t = a.get(this._historyCookieName);
                    return t ? JSON.parse(t) : []
                },
                unHistory: function(t) {
                    for (var e = this.getHistory(), n = 0; n < e.length; n++)
                        t == e[n] && (e.splice(n, 1),
                            n--);
                    return e
                },
                addHistory: function(t) {
                    var e = this.unHistory(t);
                    t && this.txtLength(t) <= this._histotyLength && (e.length >= this._count && e.pop(),
                        e.unshift(t),
                        a.set(this._historyCookieName, JSON.stringify(e), 90, ".eastmoney.com"))
                },
                clearHistory: function() {
                    a.del(this._historyCookieName, ".eastmoney.com")
                },
                txtLength: function(t) {
                    for (var e = 0, n = 0; n < t.length; n++)
                        255 < t.charCodeAt(n) ? e += 2 : e++;
                    return e
                }
            }
        }
        , function(t, e) {
            t.exports = function(t, e, n, a, s) {
                var i = "";
                s != undefined ? i = "SearchWord:" + a + ";EntryWord:" + s : a && (i = "SearchWord:" + a);
                try {
                    i ? window.sendTrackLog(t, e, n, encodeURIComponent(i)) : window.sendTrackLog(t, e, n)
                } catch (o) {}
            }
        }
        , function(t, e) {
            t.exports = {
                isIE9: function() {
                    return document.all && document.addEventListener && !window.atob
                },
                isIpad: function() {
                    return 0 <= navigator.userAgent.toLowerCase().indexOf("ipad")
                },
                isMobile: function() {
                    return ["ipad1", "android", "ios"].some(function(t) {
                        return 0 < navigator.userAgent.toLowerCase().indexOf(t)
                    })
                }
            }
        }
    ])
});
